import requests
from lxml import etree

header = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0'
}
url = 'https://cang.cngold.org/c/2024-05-21/c9310686.html'
res = requests.get(url=url, headers=header)
text = res.content.decode()
tree = etree.HTML(text)
text = tree.xpath('//div[@class="article_con"]//text()')
print(text)
